/**
 * 
 */
function setList(type, day){
	// 页面载入填充页面内容
	var setContent  = '';
	var cd          = '全部';
	var moneyType   = '';
	$.each(resData['list'], function (key, value){
		if(type == 1){
			if( value.tid != 'tixian' ) return true;
		}else if(type == 2){
			if( value.tid != 'chongzhi' ) return true;
		}
		
		// 选择时间内的内容展示判断
		if(day == 'today'){
			cd = '今天';
			if( value.dateline < resData.other.today ) return true;
		}else if(day == 'yesterday'){
			cd = '昨天';
			if( value.dateline > resData.other.today || value.dateline < resData.other.yesterday ) return true;
		}else if(day == '7day'){
			cd = '七天';
		}
		setContent += '<div data-v-111e35a2="">';
		setContent += '	<div data-v-111e35a2="">';
		setContent += '		<a data-v-111e35a2="" class="active" amt="' + key + '">';
		setContent += '			<div data-v-111e35a2="">';
		setContent += '				<p data-v-111e35a2="">' + value.notes + '</span></p>';
		setContent += '				<span data-v-111e35a2="">' + value.dateline_format + '</span>';
		setContent += '			</div>';
		
			switch(value.tid){
				case 'tixian':
				case 'order_add':
					// 下注，金额是支出
					moneyType = '<strong data-v-111e35a2="" class="OutMoney">-' + value.money + '</strong>';
					break;
				case 'chongzhi':
				case 'order_winner':
					moneyType = '<strong data-v-111e35a2="" class="InMoney">+' + value.money + '</strong>';
					break;
				default :
					moneyType = '<strong data-v-111e35a2="">+' + value.money + '</strong>';
					break;
			}
			setContent += moneyType;
		
		setContent += '		</a>';
		setContent += '		<div data-v-111e35a2="" class="hr1px"></div>';
		setContent += '	</div>';
		setContent += '</div>';
	})
	if(setContent){
		setContent += '<div data-v-111e35a2="" class="msg noMore">已显示' + cd + '全部记录</div>';
		$('.tag_order_content').html(setContent);
	}else{
		setContent += '	<div data-v-b7cd2a52="" class="fullPageMsg">';
		setContent += '		<div data-v-b7cd2a52="" class="fullPageIcon iconfont">　</div>';
		setContent += '		<p data-v-b7cd2a52="">暂无记录</p>';
		setContent += '	</div>';
		$('.tag_order_content').html(setContent);
	}
}

function tradeControllShow(obj, type){
	$('.tag_item').removeClass('on');
	$(obj).addClass('on');
	setList(type, choice_day);
}

